import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import {AppRoutingModule} from './app-routing/app-routing.module';

// modules
import { ComponentsModule } from '../components/components.module';
import { MenuModule } from './pages/menu/menu.module';
import { HttpService } from '../http/http.service';

// http
import { HttpClientModule } from '@angular/common/http';
import { HttpModule } from '../http/http.module';

// serve
import { MainNavService } from './main-nav.service';
// components
import { AppComponent } from './app.component';
import { NoFundPageComponent } from './pages/no-fund-page/no-fund-page.component';

@NgModule({
  declarations: [
    AppComponent,
    NoFundPageComponent
  ],
  imports: [
   BrowserModule,
    HttpClientModule,
    // HttpModule,
    ComponentsModule,
    MenuModule,
    AppRoutingModule,
  ],
  providers: [
    HttpService,
    MainNavService,
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
